Conversation
roborev: Combined Review (
|
roborev: Combined Review (
|
I’m checking the current workspace state around the webhook docs and hook implementation first so I can make the smallest change that resolves the review finding. The implementation is generic JSON, so the smallest correct fix is to narrow the docs rather than add provider-specific payload support. I’m searching for any other Slack/Discord/Teams claims before editing. I found a single bad product claim in the docs. I’m updating the README to describe the webhook hook as generic JSON only, which matches the current implementation and avoids implying Slack/Discord/Teams compatibility. The code path didn’t need changes; only the README claim was incorrect. I’m running the required build and full test pass now to verify the tree is still clean. Build and test are still running. I’m polling both so I can catch failures immediately rather than waiting for a final timeout. The build finished cleanly. Tests are still progressing, so I’m waiting for the final result. Updated [README.md](/var/folders/7d/d85m5sks7r5f05fg4m3tlcb80000gn/T/roborev-worktree-2035613411/README.md) to describe `type = "webhook"` as a generic JSON webhook integration and replaced the Slack-specific example URL with a neutral endpoint, which brings the docs back in line with the current implementation. Verification: `GOCACHE=/tmp/go-build go build ./...` passed and `GOCACHE=/tmp/go-build go test ./...` passed. Changes: - Clarified the webhook hook docs to say it posts generic review event JSON, not Slack/Discord/Teams-specific payloads
The previous implementation preserved the first path segment, which leaks the token for webhook URLs where the secret is a single path segment (e.g., https://host/<secret>). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
The TestHookRunnerWebhookLogsHTTPError test still expected the old "/services/..." output after redactWebhookURL was changed to collapse the entire path to "/...". Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
- Increase bufio.Scanner buffer in stream client to 1MB to handle large findings payloads that can exceed the default 64KB limit - Unwrap *url.Error before logging in webhook error paths to prevent Go's HTTP client from leaking the raw URL in error messages - Mark HookConfig.URL as sensitive and extend collectSensitiveKeys to recurse into slice element types so config display masks webhook URLs Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
roborev: Combined Review (
|
## Summary - add `type = "webhook"` hook support with async JSON POST delivery - include `findings` in marshaled review event JSON and cover webhook behavior with tests - document the generic webhook hook usage in the README ## Testing - go fmt ./... - go vet ./... - go test ./... - roborev refine Closes roborev-dev#393 --------- Co-authored-by: Wes McKinney <wesmckinn+git@gmail.com> Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
Summary
type = "webhook"hook support with async JSON POST deliveryfindingsin marshaled review event JSON and cover webhook behavior with testsTesting
Closes #393